package cc.mrbird.febs.customer.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 收入明细表
 * </p>
 *
 * @author Macw
 * @since 2020-11-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_income")
public class Income implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 收入明细表主键
     */
    @TableId(value = "income_id", type = IdType.AUTO)
    private Integer incomeId;

    /**
     * 客户id
     */
    private Long customerId;

    /**
     * 收入金额
     */
    private BigDecimal incomePrice;

    /**
     * 活动分成百分比
     */
    private Integer distribution;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 活动名称
     */
    private String activityName;

    /**
     * 上级id
     */
    private Integer pid;

    @TableField(exist = false)
    private String nickName;

    /**
     * 钱包状态
     */
    private Integer status;

    /**
     * 活动id
     */
    private String activityId;

    @TableField(exist = false)
    private String headImgUrl;

    @TableField(exist = false)
    private String headPhoto;

}
